let Runtime = require('../runtime/index')
let SessionStore = Runtime.SessionStore
let modules = require('../modules')

let jvm = {
	gcFormatter(request, response, responseData) {

	}
}

module.exports = {
	'/jvm/heapUsed': modules.common.biteToMb,
	'/jvm/edenSpace': modules.common.biteToMb,
	'/jvm/survivorSpace': modules.common.biteToMb,
	'/jvm/oldGen': modules.common.biteToMb,
	'/jvm/codeCache': modules.common.biteToMb,
	'/jvm/metaspace': modules.common.biteToMb,
	'/jvm/newGC': jvm.gcFormatter,
	'/jvm/oldGC': jvm.gcFormatter,
	'/agent/sys/applicationEnvironment': (request, response, responseData) => {
		// if(responseData.data && responseData.data.vmVersion)
		// 	responseData.data.vmVersion = responseData.data.vmVersion.replace('\n','<br />')
	}
}